package com.openingedu.mba.persist;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "oc_profile")
public class DbProfile {

	@DatabaseField(generatedId = true)
	private Long profileId;
	
	/** 服务器保存的用户id **/
	@DatabaseField
	private Long serverId;
	
	/** 设备的androidID **/
	@DatabaseField
	private String androidID;
	
	/** 设备的IMEI信息 **/
	@DatabaseField
	private String imei;
	
	/** DES加密用 **/
	@DatabaseField
	private String desKey;
	
	/** 是否注册过 **/
	@DatabaseField
	private boolean registered = false;
	
	/** VIP等级 0:非VIP; 1:50元VIP **/
	@DatabaseField
	private Integer vipLevel = 0;
	
	/** 设备ID **/
	@DatabaseField
	private Integer deviceID = 0; 
	
	public DbProfile() {
		
	}
	
	
	public Long getServerId() {
		return serverId;
	}


	public void setServerId(Long serverId) {
		this.serverId = serverId;
	}


	public Long getProfileId() {
		return profileId;
	}

	public void setProfileId(Long profileId) {
		this.profileId = profileId;
	}

	public String getAndroidID() {
		return androidID;
	}

	public void setAndroidID(String androidID) {
		this.androidID = androidID;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getDesKey() {
		return desKey;
	}

	public void setDesKey(String desKey) {
		this.desKey = desKey;
	}

	public boolean isRegistered() {
		return registered;
	}

	public void setRegistered(boolean registered) {
		this.registered = registered;
	}


	public Integer getVipLevel() {
		return vipLevel;
	}


	public void setVipLevel(Integer vipLevel) {
		this.vipLevel = vipLevel;
	}


	public Integer getDeviceID() {
		return deviceID;
	}


	public void setDeviceID(Integer deviceID) {
		this.deviceID = deviceID;
	}


	@Override
	public String toString() {
		return "Profile [profileId=" + profileId + ", serverId=" + serverId
				+ ", androidID=" + androidID + ", imei=" + imei + ", desKey="
				+ desKey + ", registered=" + registered + ", vipLevel="
				+ vipLevel + ", deviceID=" + deviceID + "]";
	}
	
}
